package com.hydra.base.common;

import lombok.Data;
import lombok.ToString;
import org.apache.http.Header;

import java.io.Serializable;

@Data
@ToString
public class HttpClientResult implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
     * 响应状态码
     */
    private int code;

    /**
     * 响应数据
     */
    private String content;

    /**
     * 响应的请求头
     */
    private Header[] allHeaders;
    
    
    public HttpClientResult(int code) {
    	this.code = code;
    }


    public HttpClientResult(int code, String content) {
    	this.code = code;
    	this.content = content;
    }
}
